package com.mail1.model;

/**
 * @author vito
 * @version 1.0
 */

import lombok.Getter;
import lombok.Setter;

/**
 * 封装邮件信息，包括收件人、发件人、抄送人、邮件主题、邮件内容、附件等
 */

public class Mail {
    // 发件人
    private String from;
    // 收件人
    private String to;
    // 抄送人
    private String cc;
    // 邮件主题
    private String subject;
    // 邮件内容
    private String content;
    // 附件文件名
    private String[] attachFileNames;

    public Mail() {
    }

    public Mail(String from, String to, String cc, String subject, String content, String[] attachFileNames) {
        this.from = from;
        this.to = to;
        this.cc = cc;
        this.subject = subject;
        this.content = content;
        this.attachFileNames = attachFileNames;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getCc() {
        return cc;
    }

    public void setCc(String cc) {
        this.cc = cc;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String[] getAttachFileNames() {
        return attachFileNames;
    }

    public void setAttachFileNames(String[] attachFileNames) {
        this.attachFileNames = attachFileNames;
    }
}
